package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TranslationObjectName implements ObjectName {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName translationName;

    public TranslationObjectName(int beginIndex, SchemaQualifiedName translationName) {
        this.beginIndex = beginIndex;
        this.endIndex = translationName.getEndIndex();
        this.translationName = translationName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getTranslationName() {
        return translationName;
    }
    
}
